package com.linyf.design.abstractFactory.two;

import com.linyf.design.abstractFactory.two.productA.AbstractProductA;
import com.linyf.design.abstractFactory.two.productB.AbstractProductB;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/3/29 10:23
 **/
public class Main {
    public static void main(String[] args) {
        AbstractFactory factory = new Creator1();
        final AbstractProductA productA = factory.createProductA();
        final AbstractProductB productB = factory.createProductB();


        AbstractFactory factoryB = new Creator2();

        final AbstractProductA productA1 = factoryB.createProductA();
    }
}
